package org.rcy.ruicingmarket.resource;

import lombok.Data;
import org.rcy.framework.api.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/10/9 17:51
 */

@Table(name = "resource_api")
@Entity
@Data
public class ApiResource extends BaseEntity {
	private ApiGroup apiGroup;
	private String name;
	private Date createTime;
	private String apiFullName;
	private boolean auth;

	public ApiResource(ApiGroup apiGroup, String name, String apiFullName, boolean auth) {
		this.apiGroup = apiGroup;
		this.name = name;
		this.apiFullName = apiFullName;
		this.auth = auth;
	}

	public ApiResource() {

	}
}
